package com.netrust.quarz.common;

import com.netrust.quarz.utils.http.ResultEnums;

public class NetrustException extends RuntimeException{
	private static final long serialVersionUID = 8959620150909156206L;
	
	private Integer code;

	public NetrustException(ResultEnums re) {
		super(re.getMsg());
		this.code = re.getCode();
	}
	
	public NetrustException(Exception e) {
		super(e);
	}
	
	public NetrustException(String msg,Exception e) {
		super(msg, e);
	}
	
	public NetrustException(ResultEnums re,Exception e) {
		super(e);
		this.code = re.getCode();
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
	
}
